package sa.com.sure.ejtimaa;

import sa.com.sure.ejtimaa.common.Helper;
import sa.com.sure.ejtimaa.components.MeetingItemsAttachmentsListComponent;
import sa.com.sure.ejtimaa.components.MeetingMemberAttachmentsListComponent;
import sa.com.sure.ejtimaa.database.Meetings;
import sa.com.sure.ejtimaa.model.MeetingItemInfo;
import android.app.Activity;
import android.os.Bundle;

public class MeetingItemDetail extends Activity {

	private MeetingItemsAttachmentsListComponent meetingItemsAttachmentsListComponent  = null;
	
	private MeetingItemInfo item = null; 
	
	  @Override
	    public void onCreate(Bundle savedInstanceState) {  
		    try
		    {
		        setContentView(R.layout.meetingitem_detail);
		        
		        super.onCreate(savedInstanceState);
		        
		        if(getIntent().getSerializableExtra("item")!=null)		        
		        	item = (MeetingItemInfo) getIntent().getSerializableExtra("item");
		        
			}
			catch(Exception ex){    		
		    	Helper.HandleError(ex,true);
			}              
	    }
	  
	  @Override
		public void onStart(){
	    	
	    	try
		    {
	    		super.onStart();	    		
	    		meetingItemsAttachmentsListComponent  =(MeetingItemsAttachmentsListComponent)findViewById(R.id.meetingItemsAttachmentsListComponent);
	    		
	    		meetingItemsAttachmentsListComponent.SetData(item);
			}
			catch(Exception ex){    		
		    	Helper.HandleError(ex,true);
			}  
	    }
	    
}
